<link rel="stylesheet" type="text/css" href="http://{$strona.domena}/P/dhtmlxCalendar/codebase/dhtmlxcalendar.css">
<link rel="stylesheet" type="text/css" href="http://{$strona.domena}/P/dhtmlxCalendar/codebase/skins/dhtmlxcalendar_omega.css"/>
<script src="http://{$strona.domena}/P/dhtmlxCalendar/codebase/dhtmlxcalendar.js"></script>
<div class="zawartosc">
    {if $bledy}
    <div id="bledy">
        <ul>
            {foreach item=blad from=$bledy}
            <li>{$blad}</li>
            {/foreach}
        </ul>
    </div>
    {/if}
    {$form}
</div>

<script type="text/javascript" >
    var calendar = new dhtmlXCalendarObject("data_od");
    calendar.setSkin('omega');
    calendar.setDateFormat("%Y-%m-%d %H:%i:%s");
    calendar.setDate(document.getElementById('data_od').value);
    var calendar2 = new dhtmlXCalendarObject("data_do");
    calendar2.setSkin('omega');
    calendar2.setDateFormat("%Y-%m-%d %H:%i:%s");
    calendar2.setDate(document.getElementById('data_do').value);
</script>